import matplotlib.pyplot as plt

city = ["Beijing","Shanghai","Guangzhou","Shenzhen"]
gdp = [2233,2433,5233,4233]

# 柱状图
plt.bar(city, gdp)

plt.show()